/* 记录页面容器样式 */
.record-container {
    max-width: 800px;
    margin: 20px auto 20px;
    padding: 0 20px;
}

.record-header {
    text-align: center;
    margin-bottom: 40px;
}

.record-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 16px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eee;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
}

.timeline-date {
    width: 100px;
    padding-right: 20px;
    text-align: right;
    flex-shrink: 0;
}

.timeline-date .date {
    font-size: 16px;
    color: #333;
    display: block;
    font-weight: 500;
}

.timeline-date .year {
    font-size: 14px;
    color: #666;
}

/* 卡片样式 */
.timeline-card {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-left: 40px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-2px);
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.time {
    color: #666;
    font-size: 14px;
}

.card-content {
    padding: 20px;
}

.card-content p {
    margin: 0 0 15px;
    line-height: 1.6;
    color: #444;
}

/* 图片样式 */
.card-image {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card-image img {
    width: calc(50% - 5px);
    height: auto;
    display: block;
}

/* 标签和交互按钮 */
.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.tags {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.interactions {
    display: flex;
    gap: 15px;
}

.like-btn,
.comment-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.like-btn:hover,
.comment-btn:hover {
    color: var(--primary-color);
}

.like-btn svg,
.comment-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        width: auto;
        padding-left: 70px;
        text-align: left;
        margin-bottom: 10px;
    }

    .timeline-card {
        margin-left: 70px;
    }

    .timeline-card::before {
        left: -62px;
    }
}

@media (max-width: 480px) {
    .record-header h1 {
        font-size: 28px;
    }

    .card-header {
        padding: 15px;
    }

    .card-content {
        padding: 15px;
    }

    .card-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }

    .interactions {
        width: 100%;
        justify-content: space-around;
    }
}

.header-image {
    margin: 5px 0; /* 调整图片上下边距，减少空隙 */
    overflow: hidden; /* 隐藏超出部分 */
    border-radius: 10px; /* 圆角边框 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 添加阴影 */
}

.header-image img {
    width: 100%; /* 使图片宽度适应容器 */
    height: auto; /* 保持图片比例 */
    max-height: 300px; /* 设置最大高度 */
    object-fit: cover; /* 保持图片比例并裁剪 */
} 